Install and Deploy the Virtual Appliance Image - Generic Procedure

About this task

To install the Virtual Appliance image using the generic procedure:

Procedure

  1. Create a virtual machine based on the following parameters:

    - no CD-ROM device

    - OS: Linux, Version: 5.x - 2.6 Kernel

    - Machine: i440fx

    - BIOS: SeaBIOS

    - SCSI Controller: VirtIO SCSI

    - Disk size: 80GB (VE6120K) or 250GB (VE6125K)

    - Disk Cache: Write back

    - Video: none

    - CPU: host

    - Cores (socket 1): 4 (VE6120K Small), 6 (VE6120K Medium), 8 (VE6120K Large), or 20 (VE6125K XLarge)

    - Memory (MB): 8192 (VE6120K Small), 16384 (VE6120K Medium), 24576 (VE6120K Large), or 32768 (VE6125K XLarge)

    - Ballooning Device disabled

    - Network

    -- net0: Intel E1000, firewall disabled

    -- net1: VirtIO (paravirtualized), firewall disabled, multiqueue: 2 (VE6120K) or 4 (VE6125K)

    -- net2: VirtIO (paravirtualized), firewall disabled, multiqueue: 2 (VE6120K) or 4 (VE6125K)

    - Boot Order: scsi0

    - serial console: -chardev socket, id=serial0, port=<console_port_number>, host=0.0.0.0, server, nowait, telnet -device isa-serial, chardev=serial0

    - watchdog: -device 'i6300esb, bus=pci.0, addr=0×4'

    Reference QEMU command line of the VE6120K Small VM:
    /usr/bin/qemu-system-x86_64 \
      -id 104 \
      -name VE6120K \
      -no-shutdown \
      -chardev 'socket,id=qmp,path=/var/run/qemu-server/104.qmp,server,nowait' \
      -mon 'chardev=qmp,mode=control' \
      -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' \
      -mon 'chardev=qmp-event,mode=control' \
      -pidfile /var/run/qemu-server/104.pid \
      -daemonize \
      -smbios 'type=1,uuid=c8cfd099-e370-4905-bf83-afa1e628c3ba' \
      -smp '4,sockets=1,cores=4,maxcpus=4' \
      -nodefaults \
      -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' \
      -vga none \
      -nographic \
      -cpu host,+kvm_pv_eoi,+kvm_pv_unhalt \
      -m 8192 \
      -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' \
      -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' \
      -device 'vmgenid,guid=965377a1-862e-4bd4-94f2-96362dd522a7' \
      -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' \
      -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' \
      -device 'i6300esb,bus=pci.0,addr=0x4' \
      -iscsi 'initiator-name=iqn.1993-08.org.debian:01:c2a1f23f7fc1' \
      -device 'virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x5' \
      -drive 'file=/storage/images/104/vm-104-disk-0.raw,if=none,id=drive-scsi0,cache=writeback,format=raw,aio=threads,detect-zeroes=on' \
      -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,rotation_rate=1,bootindex=100' \
      -netdev 'type=tap,id=net0,ifname=tap104i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedo\
      -device 'e1000,mac=FE:22:F1:81:56:FF,netdev=net0,bus=pci.0,addr=0x12,id=net0' \
      -netdev 'type=tap,id=net1,ifname=tap104i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedo\
      -device 'virtio-net-pci,mac=06:B5:A9:CB:F3:2E,netdev=net1,bus=pci.0,addr=0x13,id=net1,vectors=6,mq=on' \
      -netdev 'type=tap,id=net2,ifname=tap104i2,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedo\
      -device 'virtio-net-pci,mac=E6:A3:20:1B:97:17,netdev=net2,bus=pci.0,addr=0x14,id=net2,vectors=6,mq=on' \
      -machine 'type=pc+pve0' \
      -chardev 'socket,id=serial0,port=56031,host=0.0.0.0,server,nowait,telnet' \
      -device 'isa-serial,chardev=serial0'
    

    Reference QEMU command line of the VE6125K XLarge VM:

    /usr/bin/qemu-system-x86_64 \
      -id 100 \
      -name VE6125K \
      -no-shutdown \
      -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' \
      -mon 'chardev=qmp,mode=control' \
      -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' \
      -mon 'chardev=qmp-event,mode=control' \
      -pidfile /var/run/qemu-server/100.pid \
      -daemonize \
      -smbios 'type=1,uuid=07cd719c-fc03-4d3d-ae36-4a612ebf21cf' \
      -smp '20,sockets=1,cores=20,maxcpus=20' \
      -nodefaults \
      -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' \
      -vga none \
      -nographic \
      -cpu host,+kvm_pv_eoi,+kvm_pv_unhalt \
      -m 32768 \
      -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' \
      -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' \
      -device 'vmgenid,guid=42f181ea-8ffe-4d9b-ac0b-1f45ddb07698' \
      -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' \
      -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' \
      -device 'i6300esb,bus=pci.0,addr=0x4' \
      -iscsi 'initiator-name=iqn.1993-08.org.debian:01:c2a1f23f7fc1' \
      -device 'virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x5' \
      -drive 'file=/dev/data2/vm-100-disk-0,if=none,id=drive-scsi0,cache=writeback,format=raw,aio=threads,detect-zeroes=on' \
      -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,rotation_rate=1,bootindex=100' \
      -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedo\
      -device 'e1000,mac=4E:FD:02:4C:C5:19,netdev=net0,bus=pci.0,addr=0x12,id=net0' \
      -netdev 'type=tap,id=net1,ifname=tap100i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedo\
      -device 'virtio-net-pci,mac=2A:39:7A:E0:8E:92,netdev=net1,bus=pci.0,addr=0x13,id=net1,vectors=10,mq=on' \
      -netdev 'type=tap,id=net2,ifname=tap100i2,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedo\
      -device 'virtio-net-pci,mac=56:5D:4A:16:63:AF,netdev=net2,bus=pci.0,addr=0x14,id=net2,vectors=10,mq=on' \
      -machine 'type=pc+pve0' \
      -chardev 'socket,id=serial0,port=56030,host=0.0.0.0,server,nowait,telnet' \
      -device 'isa-serial,chardev=serial0'
  2. Upload the VE6120K-*.raw.xz/VE6125K-*.raw.xz deployment image obtained in Download a VE6120K/VE6125K Image to the KVM server.
  3. Uncompress the deployment image over the VM disk image.
    Depending on the selected or configured storage type, it could be a plain disk image file, a LVM storage, or a similar storage option. Check -drive parameter in the reference commands in the previous steps for more information.
    Sample commands to populate the disk locations from the examples provided in the previous steps:

    xz -dc VE6120K-06.01.01.0001.raw.xz > /storage/images/104/vm-104-disk-0.raw

    xz -dc VE6125K-06.01.01.0001.raw.xz | dd of=/dev/data2/vm-100-disk-0 bs=1M status=progress

  4. Launch the prepared VM.